package com.kylin.common.entity;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.List;

public class Menu {
    public String name;
    public String text;
    public  String url;
    private HashSet subMenus = new HashSet();

    public boolean hasChild = false; 
    
    public Menu(String name,String text,String url){
    	this.name = name;
    	this.text = text;
    	this.url = url;
    }
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Menu[] getSubMenus() {
		return (Menu[])subMenus.toArray(new Menu[0]);
	}
	public void addSubMenu(Menu menu) {
		this.subMenus.add(menu);
	}
		
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
    
    
}
